#ifndef WXSARRAYSTRINGPROPERTY_H
#define WXSARRAYSTRINGPROPERTY_H

#include "wxscustomeditorproperty.h"


class wxsArrayStringProperty: public wxsCustomEditorProperty {
  public:


    wxsArrayStringProperty( const wxString& PGName, const wxString& DataName, const wxString& DataSubName, long Offset, int Priority = 100 );


    virtual const wxString GetTypeName() { return _T( "wxArrayString" ); }


    virtual bool ShowEditor( wxsPropertyContainer* Object );

  protected:

    virtual bool XmlRead( wxsPropertyContainer* Object, TiXmlElement* Element );
    virtual bool XmlWrite( wxsPropertyContainer* Object, TiXmlElement* Element );
    virtual bool PropStreamRead( wxsPropertyContainer* Object, wxsPropertyStream* Stream );
    virtual bool PropStreamWrite( wxsPropertyContainer* Object, wxsPropertyStream* Stream );
    virtual wxString GetStr( wxsPropertyContainer* Object );

  private:
    long Offset;
    wxString DataSubName;
};




#define WXS_ARRAYSTRING(ClassName,VarName,PGName,DataName,DataSubName) \
  { static wxsArrayStringProperty _Property(PGName,DataName,DataSubName,wxsOFFSET(ClassName,VarName)); \
    Property(_Property); }


#define WXS_ARRAYSTRING_P(ClassName,VarName,PGName,DataName,DataSubName,Priority) \
  { static wxsArrayStringProperty _Property(PGName,DataName,DataSubName,wxsOFFSET(ClassName,VarName),Priority); \
    Property(_Property); }



#endif
